package com.ruoyi.user.api;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.user.api.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value="ruoyi-user")
public interface UserService {
    @GetMapping("/user/list")
    public TableDataInfo list(@SpringQueryMap User user);
    @PostMapping("/user")
    public AjaxResult add(@RequestBody User user);
    @GetMapping("/user/one/{phone}")
    public TableDataInfo getOne(@PathVariable("phone") String phone);
}
